package com.oauth2.mapper;

import com.oauth2.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <h3>springboot-security-oauth2</h3>
 * <p></p>
 *
 * @author zxj
 * @since 2024-07-05 15:59:10
 */
@Mapper
public interface UserMapper {

    @Select( "select id , username , password from user where username = #{username}" )
    User loadUserByUsername(@Param("username") String username);

}
